package com.lazy.utils.utils;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;

public class Result implements Serializable {

    private static final long serialVersionUID = 1L;

    public Result(int status, String msg, Object data) {
        this.status = status;
        this.msg = msg;
        this.data = data;
    }

    public Result(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public int status;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String msg;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    public Object data;


    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

}
